home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 15
/
015.d81
/
t.logo boot
< prev
next >
Wrap
Text File
|
2022-08-26
|
2KB
|
140 lines
LOGO DATA BASE
Written by: David Malmberg
List Processing in LOGO-Part 3
A LOGO Data Base for the C-64
PowerPlay Magazine, September 1985
Page 114
David is continuing his series on
List Processing using the language of
LOGO. This month he develops a full
fledged data base.
Whenever you wish to develop a new
data base, begin by using the
original copy of the program. This
will make sure that you are using a
'fresh' copy.
The first thing you want to do when
using the data base is define the
record fields. You do that by
giving the command:
CREATE "FACTS [DATE TIME PLACE]
This would define a file named
FACTS with three fields (DATE, TIME,
and PLACE).
To add to the data base you give
the command:
ADD "FACTS
The computer then prompts you to
enter your information. When you are
finished entering your data, enter
QUIT to the ENTRY? prompt.
To display all records, type:
DISPLAY EVERY "FACTS
To save your records to disk, type:
SAVE "FACTS
You can search your data base by
typing:
DISPLAY SELECTED "FACTS
You will then be given a menu that
will allow you to pick your mode of
search. You can search ANY fields,
you can search only the KEYWORD
fields, or you can search only the
ENTRY field. The data that you are
searching is numeric, the program
will display a total of all records
found.
To delete your records, you can
type:
DELETE EVERY "FACTS
This will delete all records in the
file. You can also DELETE SELECTED
"FACTS. This allows you to delete
only the records that you specify.
**** NOTE ****
Because of the nature of this
program, it can not be RUN from the
LOADSTAR environment. The actual
program is on Side 2 of this issue.
It is saved under the name of:
DATA.LOGO
This program is copyrighted by
PowerPlay Magazine. All rights to it
are reserved. LOADSTAR has relieved
you from the burden of keying in this
program, For more complete
information about this program, refer
to the September 1985 issue of
PowerPlay Magazine.
>Files used: DATA.LOGO
----------< end of article >----------